package com.lostad.app.vert.core.bean;

import java.util.Map;

import io.vertx.core.json.JsonObject;

/**
 * $.ajax后需要接受的JSON
 * 
 * @author   sszvip
 * 
 */
public class AjaxJson {
	private boolean success = true;// 是否成功
	private String msg = "操作成功";// 提示信息
	private Object obj = null;// 数据信息
	private Map<String, Object> attributes;// 其他参数
	
	public AjaxJson(){}
	public AjaxJson(boolean success, String msg, Object obj) {
		this.success = success;
		this.msg = msg;
		this.obj = obj;
	}

	public AjaxJson(boolean success, String msg, Object obj,Map<String, Object> attributes) {
		this.success = success;
		this.msg = msg;
		this.obj = obj;
		this.attributes = attributes;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}
}
